package com.wondertek.poms.dao.repo;

import com.wondertek.poms.dao.po.CpInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author chenjijiang
 * @description
 */
@Repository
public interface ICpInfoDao extends JpaRepository<CpInfo, Long> , JpaSpecificationExecutor<CpInfo> {

    @Query(value = "delete from CP_INFO a where a.ID in (?1) ",nativeQuery=true)
    @Modifying
    int deleteCpInfoByIds(List<Long> ids);

}
